<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>通讯卡</title>
<link href="/theme/comm/simpl.css" type="text/css" rel="stylesheet" media="screen" />
<link href="/theme/comm/base.css" type="text/css" rel="stylesheet" media="screen" />
<link href="/theme/jquery/ui-lightness/jquery-ui-1.10.3.custom.min.css" type="text/css" rel="stylesheet"
	media="screen" />
<script src="/js/comm/jquery/jquery-2.0.1.min.js"></script>
<script src="/js/comm/jquery/jquery.ui.core.js"></script>
<script src="/js/comm/jquery/jquery.ui.datepicker.min.js"></script>
<script>
 $(function() {
   $( "#putawayDate" ).datepicker();
 });
 </script>
</head>
<body class="Margin">
	<jsp:include page="/content/comm/header.jsp"></jsp:include>
	<script type="text/javascript">
	document.all.CommunicationCardTab.className += "ActiveTab";
	</script>
	<div class="PageBackground">
		<div style="margin: 10px;">
			<span style="font-weight:bold;">表3之二 入库表（通讯卡）</span>
		</div>
		<form action="/sheets/communication-card.do" method="post" enctype="multipart/form-data">
			<div>
			<table>
				<tr><td>入库日期： </td><td><s:textfield id="putawayDate" name="putawayDate"></s:textfield></td></tr>
				<tr><td>卡号： </td><td><s:textfield name="cardID"></s:textfield></td></tr>
				<tr><td>运营商： </td><td><s:textfield name="operator"></s:textfield></td></tr>
				<tr><td></td><td><s:submit id="searchBtn" name="search" method="search" value="Search"></s:submit></td></tr>
			</table>
			</div>
			<div>
				<s:file id="spreadSheet" name="spreadSheet"></s:file>
				<s:submit id="uploadBtn" name="Upload" method="uploadSheet" value="Upload" ></s:submit>
			</div>
		</form>
		<s:property value="outMessage" />
		<s:if test="outMessage!=''">
		<div>
			<table border="1">
				<tr>
				<s:iterator value="colHeaderList" var="chItem" status="st">
				<td <s:if test="!#chItem.isMatch">style="background-color:red;"</s:if> ><s:property value="#chItem.columnName"/></td>
				</s:iterator>
				</tr>
			</table>
		</div>
		</s:if>
		<s:else>
		<div>
			<table border="1">
				<tr>
					<td>入库日期</td><td>卡号</td><td>密码</td><td>运营商</td>
					<td>供应商</td><td>供应商联系方式</td><td>经办人</td><td>备注</td>
				</tr>
				<s:iterator value="CommunicationCardList" var="gdItem" status="st">
				<tr>
					<td><s:date name="#gdItem.putawayDate" format="dd/MM/yyyy"/></td>
					<td><s:property value="#gdItem.cardID"/></td>
					<td><s:property value="#gdItem.passWord"/></td>
					<td><s:property value="#gdItem.operator"/></td>
					<td><s:property value="#gdItem.vendor"/></td>
					<td><s:property value="#gdItem.vendorContactPhone"/></td>
					<td><s:property value="#gdItem.agent"/></td>
					<td><s:property value="#gdItem.remarks"/></td>
				</tr>
				</s:iterator>
			</table>
		</div>
		</s:else>
	</div>
</body>
</html>